package com.hainatong.shiphelper.module.warehouse.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder;
import com.hainatong.shiphelper.R;
import com.hainatong.shiphelper.databinding.ItemRukuViewBinding;
import com.hainatong.shiphelper.module.warehouse.entity.RukuGoodsInfo;
import org.jetbrains.annotations.NotNull;

public class ItemRukuAdapter extends BaseQuickAdapter<RukuGoodsInfo, BaseDataBindingHolder<ItemRukuViewBinding>>
{
    public ItemRukuAdapter()
    {
        super(R.layout.item_ruku_view);
    }

    @Override
    protected void convert(@NotNull BaseDataBindingHolder<ItemRukuViewBinding> bindingHolder, RukuGoodsInfo recordBean)
    {
        ItemRukuViewBinding binding = bindingHolder.getDataBinding();
        if( binding != null )
        {
            binding.setRecordBean( recordBean );
            binding.executePendingBindings();
        }
    }
}
